<div class="opinions">
    <?php foreach ($opinions as $opinion) : ?>
        <hr />
        <div class="recordRow" id="opinion_<?php echo $opinion->getId(); ?>">		    		    
    	<div class="shadowWrapper padAll10 overHidden">
    	    <div class="clear">
    		<div class="floatL msgInfo">				
    		    <img src="<?php echo $opinion->getUser()->getAvatarThumb(); ?>" class="floatL userPicSm" />
    		    <a href="<?php echo Yii::app()->createUrl('profile/view', array('id' => $opinion->getUser()->getId())); ?>"><?php echo $opinion->getUser()->getProfileName(); ?></a><i> пишет:</i>
    		</div>			    
    		<div class="floatR msgSup">
    		    <div class="btn-group">
    			<a href="javascript:void(0);" onclick="$.data(container, 'vote').voteUp(<?php echo $opinion->id; ?>, 'opinion')" class="btn btn-mini success">Нравится <i class="icon-thumbs-up"></i></a>
    			<a href="javascript:void(0);" class="btn btn-small rating"><b class="<?php echo ($opinion->rating >= 0 ? "green" : "red"); ?>"><?php echo ($opinion->rating > 0 ? '+' : false); ?><?php echo $opinion->rating; ?></b></a>
    			<a href="javascript:void(0);" onclick="$.data(container, 'vote').voteDown(<?php echo $opinion->id; ?>, 'opinion')" class="btn btn-mini error"><i class="icon-thumbs-down"></i></a>
    		    </div>
    		</div>			    
    	    </div>
    	    <div class="clear padTop10"></div>
    	    <div class="msgContent">
		    <?php echo CTruncate::trunc($opinion->content); ?>
    	    </div>
    	    <div class="clear padTop10"></div>
    	    <div>			
    		<div class="clear"></div>
    		<b class="green">Оценка пользователя: </b><br />
    		<div class="starRatingFx rt<?php echo intval($opinion->getDbData('user_rating')); ?>"></div>
    		<div class="clear padTop10"></div>
    		<div class="floatL">
    		    <a href="javascript:void(0)" class="btn showOpinion">Посмотреть</a>
    		</div>
    		<div class="floatR">
    		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($opinion->has_image ? '' : '_unactive'); ?>.png" class="marker"/>&nbsp;&nbsp;&nbsp;
    		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($opinion->has_video ? '' : '_unactive'); ?>.png" class="marker"/>&nbsp;&nbsp;&nbsp;
    		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($opinion->has_map ? '' : '_unactive'); ?>.png" class="marker" />&nbsp;&nbsp;&nbsp;
    		</div>				
    	    </div>
    	</div>
        </div>		
    <?php endforeach; ?>	
</div>